package com.sale.goods.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.goods.domain.GoodsInvoiceInto;
import com.sale.goods.domain.dto.GoodsInvoiceIntoDto;
import com.sale.goods.domain.vo.GoodsInvoiceIntoVo;
import org.apache.ibatis.annotations.Param;

/**
 * @Description 进项税发票
 * @Date 23-07-19
 * @Author hl
 **/
public interface GoodsInvoiceIntoMapper extends BaseMapperPlus<GoodsInvoiceIntoMapper, GoodsInvoiceInto, GoodsInvoiceInto> {


    /**
     * 根据物料信息查询属性
     * @param build,buildQueryWrapper
     * @return   List<MaterialAuxiliary>
     */
    Page<GoodsInvoiceIntoDto> selectInvoiceIntoList(@Param("page") Page<GoodsInvoiceIntoVo> build, @Param(Constants.WRAPPER) Wrapper<GoodsInvoiceIntoVo> buildQueryWrapper);

    /**
     * 根据号码查询唯一性
     * @param number
     * @return   int
     */
    int selectNumberCount(String number);
}
